package com.db.patterns.prototype.demo02;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

@Slf4j
@Data
public class Resume implements Cloneable, Serializable {
    private String name;
    private int age;
    private String gender;
    private WorkExperience workExperience;

    public Resume() {
        log.info("无参构造方法被调用");
    }

    @Override
    protected Resume clone() throws CloneNotSupportedException {
        log.info("通过clone方法实现简历的克隆");
        return (Resume) super.clone();
    }
}
